package Binary;
/*十六进制*/
public class HexDemo {
    public static void main(String[] args) {
        int n = 0x56fdec12;
        int m = 0b01_0110_0010_1100_0111_1111;
        System.out.println(Integer.toBinaryString(n));/*二级制输出*/
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toHexString(n));/*十六进制输出*/
        System.out.println(Integer.toHexString(m));
        System.out.println(n);/*按十进制输出*/
        System.out.println(m);
    }
}
